package main.java.cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.domain.Role;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IEmployeeService {
    void insert(Employee record, Long[] ids);

    void updateByPrimaryKey(Employee record, Long[] ids);

    void deleteByPrimaryKey(Long id);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    PageInfo<Employee> query(QueryObject qo);

    // 登录
    Employee login(String username, String password);

    Employee selectByUsername(String username);

    Workbook exportXls();

    void importXls(MultipartFile file) throws IOException;

    void updatePasswordByEmpId(Long id);

    void updatePassword(String newPassword, Long id);

}
